package com.designPattern.adapter.adapter;

import com.designPattern.adapter.controller.SimpleController;

public class SimpleAdapter implements Adapter{

    @Override
    public boolean supports(Object handler) {
        return (handler instanceof SimpleController);
    }

    @Override
    public void handle(Object handler) {
        //调用SimpleController中的doSimpleController()方法
        ((SimpleController)handler).doSimpleController();
    }
}
